
// 盖浇饭
fetch('./菜单/盖浇饭.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g1 = reader2.result;
		row = g1.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g1 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 粉面饭
fetch('./菜单/粉面饭.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g2 = reader2.result;
		row = g2.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g2 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 经济小炒
fetch('./菜单/经济小炒.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g3 = reader2.result;
		row = g3.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g3 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 精美锅仔
fetch('./菜单/精美锅仔.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g4 = reader2.result;
		row = g4.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g4 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 烧菜系列
fetch('./菜单/烧菜系列.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g5 = reader2.result;
		row = g5.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g5 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 凉菜
fetch('./菜单/凉菜.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g6 = reader2.result;
		row = g6.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g6 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});

// 汤
fetch('./菜单/汤.csv', {
}).then((res) => {
  console.log('object res', res);
  return res.blob();
}).then((blob) => {
	  const reader2 = new FileReader();
	  reader2.readAsText(blob, 'gbk');
	  reader2.onload = () => {
		// console.log('result ======', reader2.result);
		g7 = reader2.result;
		row = g7.split('\n')	//使用换行切割出每一行
		for(i=1;i<row.length-1;i++){
			col = row[i].split(',');
			$('#g7 .food-list').append(
				'<li>'+
                '<div class="food-name">'+ col[1]+'</div>'+
                '<div class="food-price">'+ col[2] +'</div>'+
              '</li>'
			)
		}
	  };
});